package com.binvshe.binvshe.contacts;

import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.View;

import com.pachong.android.frameworkbase.utils.GlideHelper;


/**
 * 好友列表布局
 *
 * @Author: PV
 * @E-mail: pengveivei@sina.cn
 * @CreateDate: 2016-10-28
 * @Version: 1.0.0
 */
public class FriendListAdapter extends SearchResultAdapter {

    public FriendListAdapter(Context con) {
        super(con);
    }

    @Override
    public void onBindHolder(RecyclerView.ViewHolder holder, final int position) {
        final ViewHolder viewHolder = (ViewHolder) holder;
        final People people = (People)getData().get(position);

        viewHolder.tvName.setText(people.getNick_name());
        viewHolder.tvContent.setText(people.getSign());
        GlideHelper.loadImageWithRound(getContext(), viewHolder.ivPortraid, people.getPortrait());
        viewHolder.button.setVisibility(View.INVISIBLE);

    }

}
